<div id="slideshow">Flash player is missing!</div>

<?
	$images = array();
	if($dir = opendir(DIR_IMAGE."/slideshow")){
		while($f = readdir($dir)){
			if(preg_match('/\.jpe?g$|\.bmp$|\.png$|\.gif$/', $f)){
				$images[] = "'$f'";
			}
		}
	}
?>

<script type="text/javascript">
	var flashVars = {
		dir_base: '<?= "http://" . $_SERVER["SERVER_NAME"] . "/image/slideshow/" ?>',
		images	: [<?= implode(",",$images); ?>]
	};
	var params = {
		wmode: "transparent"
	};
	var attributes = {};
	var callback = function(result){
		
	}
	swfobject.embedSWF("/image/slideshow.swf", "slideshow", "750", "300", "9.0.0", "/image/expressInstall.swf", flashVars, params, attributes, callback);
</script>